package day6;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

/**
 * @author oldliu
 * @since 1.0
 */
public class FileRead {
    public static void main(String[] args) {
        try {
            InputStream in = new FileInputStream("F:\\java82\\zhangliangmu\\作业.txt");
            int ch=0;
            while ((ch=in.read())!=-1){
                System.out.print(ch+" ");
            }
            in.close();//有隐患
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
